package com.eol.common.config.converter;

import org.springframework.core.convert.converter.Converter;

/**
 * Created with IntelliJ IDEA.
 * User: liulinhui
 * Date: 8/7/19
 * Time: 8:04 PM
 * Description: 空字符串("")转换成Double的null
 */
public class StringToDoubleConverter implements Converter<String, Double> {

    @Override
    public Double convert(String source) {
        return StringToDoubleUtil.convert(source);
    }
}
